package org.qqcui.designpattern.patterns.composite;

/**
 * 专业实现类，已经是叶子组织，因此该实现类中不需要实现增删节点操作
 *
 * @author cuiqingqiang
 * @version 1.0
 * @date 2022/4/29 15:36
 **/
public class Department extends OrganizationComponent {

    public Department(String name, String desc) {
        super(name, desc);
    }

    @Override
    protected void print() {
        System.out.println(getName());
    }
}
